//
//  InformationCell.m
//  FunSport_WWL
//
//  Created by xalo on 16/4/28.
//  Copyright © 2016年 wanghao. All rights reserved.
//

#import "InformationCell.h"

@interface InformationCell ()

@property (weak, nonatomic) IBOutlet UIImageView *coverImg; //配图
@property (weak, nonatomic) IBOutlet UILabel *title;   //标题
@property (weak, nonatomic) IBOutlet UILabel *desc; //标题下短描述
@property (weak, nonatomic) IBOutlet UILabel *viewCount;   //跟帖数


@end

@implementation InformationCell

- (void)awakeFromNib {
    [super awakeFromNib];

    // Initialization code
}

-(void)setCellWithModel:(NewsListModel *)model{
    //标题
    self.title.text = model.title;
    //配图
    [self.coverImg sd_setImageWithURL:[NSURL URLWithString:model.imgsrc]];

    //简介
    self.desc.text = model.digest;
    //跟帖数
    self.viewCount.text = [NSString stringWithFormat:@"%ld",(long)model.replyCount];


}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
